﻿@using ES.Models
@{
    var loginCustomer = Session["LoginKey"] as Customer;   
}
<div class="options">
    <div class="search">
        <form action="@Url.Action("Index", "Product")" method="Get">
        <span class="field">
            <input type="text" name="SearchString" id="SearchString" title="Arama" value="@Request.Params["SearchString"]" /></span>
        <input type="submit" class="search-submit" value="Ara" />
        </form>
    </div>
    <div class="right">
        @if (loginCustomer == null)
        {
       
            <span class="left more-links"><a href="@Url.Action("Login", "My")">Giriş Yap</a>
            </span>
       
        }
        else
        {
            <span class="cart"><a href="#" class="cart-ico"></a><strong>@loginCustomer.GetTotalBasketValue().ToString("0.00")
                TL</strong> </span>
            <span class="left more-links"><a href="#">@loginCustomer.FullName
            </a></span>
        
        }
    </div>
</div>
